package com.example.votemanage.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auctionuser")
@NoArgsConstructor
@AllArgsConstructor
public class AuctionUser implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "userId",type = IdType.AUTO)
    private Integer userId;
    @TableField(value = "userName")
    private String userName;
    @TableField(value = "userPassword", exist = true)
    private String userPassword;
    @TableField(value = "userCardNo", exist = true)
    private String userCardNo;
    @TableField(value = "userTel", exist = true)
    private String userTel;
    @TableField(value = "userAddress", exist = true)
    private String userAddress;
    @TableField(value = "userPostNumber", exist = true)
    private String userPostNumber;
    @TableField(value = "userIsAdmin", exist = true)
    private Integer userIsAdmin;
    @TableField(value = "userQuestion", exist = true)
    private String userQuestion;
    @TableField(value = "userAnswer", exist = true)
    private String userAnswer;
    @TableField(exist = false)
    private String token;
}
